package com.example.zk.service.impl;

import com.example.zk.mapper.RoleMapper;
import com.example.zk.model.Role;
import com.example.zk.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by it001 on 2018-12-26.
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> findByUserid(Long id) {
        return roleMapper.getUserRoles(id);
    }
}
